package com.bhs.sansonglogistics.ui.adapter;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.bhs.sansonglogistics.R;
import com.bhs.sansonglogistics.bean.CouponBean;
import com.bhs.sansonglogistics.utils.MyUtils;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

/**
 * 公司优惠券
 */
public class DiscountCouponAdapter extends BaseQuickAdapter<CouponBean, BaseViewHolder> {

    public DiscountCouponAdapter() {
        super(R.layout.item_discount_coupon);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, CouponBean item) {
        helper.setText(R.id.tv_bond_price,MyUtils.subZeroAndDot(item.getCoupon_price()));
        helper.setText(R.id.tv_full_subtraction,item.getCoupon_title());
    }
}
